{template header}
<div class="path">
	<span><a href="category-admin.htm">分类管理</a></span>
	<!--{if $categoryId}-->
	<span><a href="category-create.htm">添加分类</a></span>
	<span>编辑分类</span>
	<!--{else}-->
	<span>添加分类</span>
	<!--{/if}-->
</div>
<div class="content">
	<div class="c1">
	  <form name="uform" action="category-$action.htm" method="post" enctype="multipart/form-data">
		<table width="100%" border="0" cellpadding="0" cellspacing="1" class="c1content">
		   <tr>
		     <td align="right">所属模块：</td>
		     <td>
			 <select name="category[storeId]" id="storeId">
			 	<!--{loop $categoryModel $key $list}-->
			 	<option value="{$key}">{$list}</option>
				<!--{/loop}-->
			 </select>
			 <script language="javascript" type="text/javascript">
			 	jQuery('#storeId').val({$category[storeId]});
			 </script>			 </td>
	      </tr>
		   <tr>
		     <td align="right">所属分类：</td>
		     <td>
			  <select name="category[parentId]" id="storeId">
			 {loop $categoryList $val}
				 <option value="0">{$val[cateName]}</option>
				 {loop $val[listArr] $list}
				 	<option value="{$list[categoryId]}" {if $category[parentId]==$list[categoryId]}selected="selected"{/if}>{$list[cateName]}</option>
				 {/loop}
			 {/loop}
			 </select>			 </td>
		   </tr>
		   <tr>
		    <td width="10%" align="right">分类名称：</td>
		    <td><input name="category[cateName]" type="text" class="w01" id="cate_name" value="{$category[cateName]}" /></td>
		  </tr>

		   <tr>
		     <td align="right">系列标题：</td>
		     <td><input name="category[mixed]" type="text" class="w01" id="mixed" value="{$category[mixed]}" /></td>
		   </tr>
		   <tr>
		     <td align="right">系列图片：</td>
		     <td><input type="file" name="picture" /></td>
		   </tr>
		  <tr>
		    <td width="10%" align="right">分类排序：</td>
		    <td><input name="category[cateSort]" type="text" class="w01" id="sort_order" value="{$category[cateSort]}" /></td>
		  </tr>
		  <tr>
		    <td align="right">是否显示：</td>
	        <td><select name="category[isMenu]" id="category[isMenu]">
	          <option value="0" {if $category[isMenu]==0}selected="selected"{/if}>显示</option>
	          <option value="1" {if $category[isMenu]==1}selected="selected"{/if}>不显示</option>
	          </select>
	        </td>
		  </tr>
		  
		  <tr>
		    <td align="right">说明：</td>
		    <td><textarea name="category[content]" cols="60" rows="10" id="content">{$category[content]}</textarea></td>
		  </tr>
		  <tr>
		    <td align="right">&nbsp;</td>
		    <td>
			<input class="bigButton" name="submitTo" type="submit" value="提交" />
			&nbsp;&nbsp;<input class="bigButton" name="input" type="reset" value="重 填" />
			<input type="hidden" name="categoryId" value="$categoryId" />			</td>
		    </tr>
		</table>
	</form>
	</div>
</div>
{template footer}